<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 为抵抗洪水，战士连续作战89小时，编程计算共多少天零多少小时？ -->
    <script>
        var hour1=89
        var day = parseInt(hour1/24)
        var hour = hour1-(day*24)
        console.log('一共'+ day +"天"+hour+"小时");       
    </script>
</body>
</html>